if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_InsertFactory]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_InsertFactory]
GO
CREATE PROC sp_InsertFactory
	@facName	nvarchar(200),
	@phone		varchar(20),
	@facDes		nvarchar(2000)
AS
BEGIN
	INSERT INTO Factory
	(
		FactoryName, Phone, Description, Status
	)
	VALUES
	(
		@facName, @phone, @facDes, 1
	)
END